package com.xyd.entity;

import java.io.Serializable;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * 类描述：用户表实体类
 *
 * @author 张吉哲
 * @date 2021/1/9 13:46
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class User implements Serializable {

  /** 用户id */
  private String euUserId;
  /** 用户名 */
  private String euUsername;
  /** 密码 */
  private String euPassword;
  /** 性别 */
  private String euSex;
  /** 出生生日 */
  private String euBirthday;
  /** 身份证号 */
  private String euIdentityCode;
  /** 邮箱 */
  private String euEmail;
  /** 手机号 */
  private String euMobile;
  /** 家庭住址 */
  private String euAddress;
  /** 类型：1：普通用户；2：管理员 */
  private Integer euStatus;

  /** 用户拥有的订单 */
  private List<Order> orderList;

  public User(String euUserId, String euUsername, String euPassword, String euSex,
      String euBirthday, String euIdentityCode, String euEmail, String euMobile,
      String euAddress, Integer euStatus) {
    this.euUserId = euUserId;
    this.euUsername = euUsername;
    this.euPassword = euPassword;
    this.euSex = euSex;
    this.euBirthday = euBirthday;
    this.euIdentityCode = euIdentityCode;
    this.euEmail = euEmail;
    this.euMobile = euMobile;
    this.euAddress = euAddress;
    this.euStatus = euStatus;
  }
  public User(String euUserId, String euUsername, String euPassword, String euSex, String euBirthday, String euMobile, String euAddress) {
    this.euUserId = euUserId;
    this.euUsername = euUsername;
    this.euPassword = euPassword;
    this.euSex = euSex;
    this.euBirthday = euBirthday;
    this.euMobile = euMobile;
    this.euAddress = euAddress;
  }
}
